package com.xmut.mall.order.feign;

import com.xmut.mall.order.utils.RespBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("mall-store")
public interface StoreFeignService {

    /**
     * 获取商家售后收件地址
     * @param storeId
     * @return
     */
    @GetMapping("/store/storedetail/getStoreAfterSaleAddress/{storeId}")
    RespBean getStoreAfterSaleAddress(@PathVariable Long storeId);

    /**
     * 根据id获取物流公司信息
     * @param id
     * @return
     */
    @GetMapping("/store/logistics/getLogisticsById/{id}")
    RespBean getLogisticsById(@PathVariable Long id);
}
